package com.hs.android.fortress.ingame;

import com.hs.android.fortress.R;

import android.util.Log;
import android.view.View;
import android.widget.ImageButton;

public class FirstMissailState implements MissailState{

	private MissailButtonClicked missailBtn;
	
	public FirstMissailState(MissailButtonClicked missailBtn){
		this.missailBtn=missailBtn;
	}
	@Override
	public void fMissailBtnClicked(ImageButton mMissailButton1, ImageButton mMissailButton2, int tankId) {
		
	}

	@Override
	public void sMissailBtnClicked(ImageButton mMissailButton1, ImageButton mMissailButton2, int tankId) {
		
		if(tankId==1){
			mMissailButton1.setImageResource(R.drawable.btn_missail1);
			mMissailButton2.setImageResource(R.drawable.btn_missail2_clicked);
		}else if(tankId==2){
			mMissailButton1.setImageResource(R.drawable.btn_missail3);
			mMissailButton2.setImageResource(R.drawable.btn_missail4_clicked);
		}else if(tankId==3){
			mMissailButton1.setImageResource(R.drawable.btn_missail5);
			mMissailButton2.setImageResource(R.drawable.btn_missail6_clicked);
		}
		missailBtn.setState(missailBtn.secondMissailState);
	}

}
